package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "ExamAndTeacher")
public class ExamAndTeacher extends BaseModel {	//考试负责老师
	@ManyToOne(cascade = CascadeType.REFRESH)
	private ExamClassInfo examClassInfo;     //考试班级id
	@ManyToOne(cascade = CascadeType.REFRESH)
	private User teacher;     //老师id
	private String type;     //类型


}

